﻿@using Microsoft.AspNetCore.Components.Web
@namespace HardHatCore.HardHatC2Client.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="~/" />
    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
    <link href="css/site.css" rel="stylesheet" />
    <link href="HardHatC2Client.styles.css" rel="stylesheet" />
    <link href=”_content/Blazored.Toast/blazored-toast.css” rel=”stylesheet” />
    <link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />
	<link href ="css/font-awesome/css/all.css" rel="stylesheet" />
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
    <link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
    <link href="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.css" rel="stylesheet" />
    <link href="_content/Blazored.Typeahead/blazored-typeahead.css" rel="stylesheet" />
    <link href="_content/Z.Blazor.Diagrams/style.min.css" rel="stylesheet" />
    <link href="_content/Z.Blazor.Diagrams/default.styles.min.css" rel="stylesheet" />
    <link href="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.css" rel="stylesheet" />
    <component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
</head>
<body>
    @RenderBody()

    <div id="blazor-error-ui">
        <environment include="Staging,Production">
            An error has occurred. This application may no longer respond until reloaded.
        </environment>
        <environment include="Development">
            An unhandled exception has occurred. See browser dev tools for details.
        </environment>
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>

    <script src="_framework/blazor.server.js"></script>
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
    <script src="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.js"></script>
 <script src="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.js"></script>
<script src="_content/Blazored.Typeahead/blazored-typeahead.js"></script>
    <script src="_content/Z.Blazor.Diagrams/script.min.js"></script>
    <script src="_content/BlazorMonaco/jsInterop.js"></script>
    <script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
    <script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
    <script>
	    function addToLocalStorage(key,value) {localStorage[key] = value;}
	    function readLocalStorage(key) {return localStorage[key];}
        window.monitorClipboard = (dotNetReference) => {
            document.addEventListener('copy', (event) => {
                // Call a Blazor method to send a request to the server to get the clipboard content
                dotNetReference.invokeMethodAsync('RequestClipboardContentFromServer');
            });
        }
        window.getImageSize = (element) => {
            var imgElement = element.querySelector('img');
            return {
                width: imgElement.clientWidth,
                height: imgElement.clientHeight
            };
        };
        window.toggleFullscreen = function (element) {
            if (document.fullscreenElement) {
                document.exitFullscreen();
            } else {
                document.fullscreenElement = element;
            }
        }
        window.preventDefault = function () {
           oncontextmenu.preventdefault();
        }
    </script>


</body>
</html>
